<template>
  <div class="navbar">
    <van-cell value="查看跟多" is-link @click="more">
      <!-- 使用 title 插槽来自定义标题 -->
      <template #title>
        <span class="custom-title">{{ title }}</span>
      </template>
    </van-cell>
  </div>
</template>

<script>
export default {
  name: 'navBar',
  props: ['title'],
  methods: {
    more () {
      this.$emit('more')
    }
  }
}
</script>

<style lang="less" scoped>
.navbar {
  .custom-title {
    font-size: 18px;
    font-weight: bold;
  }
}
</style>
